package com.ruoyi.WarnNotification.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预警通知记录对象 warning_notification
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
public class WarningNotification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long notifyId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 触发指标 */
    @Excel(name = "触发指标")
    private String metricType;

    /** 触发数值 */
    @Excel(name = "触发数值")
    private String triggerValue;

    /** 预警等级 */
    @Excel(name = "预警等级")
    private String warningLevel;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String notifyContent;

    /** 触发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "触发时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date triggerTime;

    /** 已读状态（0未读 1已读） */
    @Excel(name = "已读状态", readConverterExp = "0=未读,1=已读")
    private Integer readStatus;

    public void setNotifyId(Long notifyId) 
    {
        this.notifyId = notifyId;
    }

    public Long getNotifyId() 
    {
        return notifyId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMetricType(String metricType) 
    {
        this.metricType = metricType;
    }

    public String getMetricType() 
    {
        return metricType;
    }
    public void setTriggerValue(String triggerValue) 
    {
        this.triggerValue = triggerValue;
    }

    public String getTriggerValue() 
    {
        return triggerValue;
    }
    public void setWarningLevel(String warningLevel) 
    {
        this.warningLevel = warningLevel;
    }

    public String getWarningLevel() 
    {
        return warningLevel;
    }
    public void setNotifyContent(String notifyContent) 
    {
        this.notifyContent = notifyContent;
    }

    public String getNotifyContent() 
    {
        return notifyContent;
    }
    public void setTriggerTime(Date triggerTime) 
    {
        this.triggerTime = triggerTime;
    }

    public Date getTriggerTime() 
    {
        return triggerTime;
    }
    public void setReadStatus(Integer readStatus) 
    {
        this.readStatus = readStatus;
    }

    public Integer getReadStatus() 
    {
        return readStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notifyId", getNotifyId())
            .append("userId", getUserId())
            .append("metricType", getMetricType())
            .append("triggerValue", getTriggerValue())
            .append("warningLevel", getWarningLevel())
            .append("notifyContent", getNotifyContent())
            .append("triggerTime", getTriggerTime())
            .append("readStatus", getReadStatus())
            .toString();
    }
}
